package edu.mse.camel.client.whiteboard.gef.ui;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;

import edu.mse.camel.client.session.team.TEAMMEMBER_STATUS;
import edu.mse.camel.client.session.team.TeamList;

public class WhiteBoardUtil {

	public static final int FIGURE_WIDTH = 2;

	public static RGB getMyColor() {
		if (TeamList.getInstance().getMyStatus() == TEAMMEMBER_STATUS.SESSION) {
			return TeamList.getInstance().getMe().getColor();
		} else {
			return ColorConstants.black.getRGB();
		}
	}
	
	public static Color createColorFromRGB(RGB rgb) {
		return new Color(null, rgb);
	}
	
}
